package com.dhwl.hsh.merchant.common;

/**
 * 简要描述
 *
 * @author Derek.Kidd
 * @version V1.0.0
 * @date 2016-04-27 14:06
 */
public class Constant {

    /**
     * 登录保持天数
     */
    public static final int LOGIN_CACHE_TIME = 15;

    /**
     * 城市信息缓存天数
     */
    public static final int AREA_CACHE_TIME = 30;


    public static final String GLOBAL_PREFERENCE_FILE = "global_preference";


    /**
     * 输入性规则验证
     *
     * @author Derek.Kidd
     * @time 2016/4/15 11:48
     */
    public static final class Rule {
        /**
         * 普通输入框最小输入长度
         */
        public static final int TEXT_MIN_LENGTH = 1;

        /**
         * 普通输入框最大输入长度
         */
        public static final int TEXT_MAX_LENGTH = 50;

        /**
         * 密码输入框最小输入长度
         */
        public static final int PWD_MIN_LENGTH = 6;

        /**
         * 密码输入框最大输入长度
         */
        public static final int PWD_MAX_LENGTH = 16;

        /**
         * email小输入长度 a@b.c
         */
        public static final int EMAIL_MIN_LENGTH = 5;

    }

    /**
     * 用户信息相关常量
     *
     * @author Derek.Kidd
     * @time 2016/4/15 11:45
     */
    public final class UserInfo {
        /**
         * 手机号
         */
        public static final String KEY_PHONE_NUM = "phone_Num";
        /**
         * 验证码
         */
        public static final String KEY_V_CODE = "v_code";

        /**
         * 计费方式：按里程付费
         */
        public static final String KEY_BILL_TYPE = "key_bill_type";

    }

    /**
     * 订单信息相关常量
     *
     * @author Derek.Kidd
     * @time 2016/4/27 14:12
     */
    public final class Order {

        /**
         * 周期
         */
        public static final int ORDER_TYPE_CYCLE = 1;
        /**
         * 单次
         */
        public static final int ORDER_TYPE_ONCE = 2;

        /**
         * 计费方式：按里程付费
         */
        public static final int VALUE_BILL_TYPE_1 = 1;
        /**
         * 计费方式：按趟计费   （仅限周期订单）
         */
        public static final int VALUE_BILL_TYPE_2 = 2;
        /**
         * 计费方式：按货价计费（仅限周期订单）
         */
        public static final int VALUE_BILL_TYPE_3 = 3;
        /**
         * 计费方式：按件数计费（仅限周期订单）
         */
        public static final int VALUE_BILL_TYPE_4 = 4;

        /**
         * 订单ID
         */
        public static final String KEY_ORDER_ID = "key_order_id";

        /**
         * 订单状态
         */
        public static final String VALUE_ORDER_STATUS = "value_order_status";
        /**
         * 订单状态：全部
         */
        public static final int VALUE_ORDER_STATUS_0 = 0;
        /**
         * 订单状态：代配送
         */
        public static final int VALUE_ORDER_STATUS_1 = 1;
        /**
         * 订单状态：待确认
         */
        public static final int VALUE_ORDER_STATUS_2 = 2;
        /**
         * 订单状态：待评论
         */
        public static final int VALUE_ORDER_STATUS_3 = 3;

        /**
         * 我要用车-》用车时间
         */
        public static final int REQUEST_CODE_1 = 1;
        /**
         * 我要用车-》发货地、配送地
         */
        public static final int REQUEST_CODE_2 = 2;
        /**
         * 我要用车-》新增配送地
         */
        public static final int REQUEST_CODE_3 = 3;
        /**
         * 我要用车-》所选车型
         */
        public static final int REQUEST_CODE_4 = 4;
        /**
         * 我要用车-》给司机稍话
         */
        public static final int REQUEST_CODE_5 = 5;

        /**
         * 我要用车-》计费方式
         */
        public static final int REQUEST_CODE_6 = 6;

        /**
         * 我要用车-》地图选址
         */
        public static final int REQUEST_CODE_22 = 22;

        // 按天、按频率
        public static final String SHIPPING_TIME_TYPE_KEY = "shipping_time_type_key";
        //按天
        public static final int SHIPPING_TIME_TYPE_DAY = 1;
        //按频率
        public static final int SHIPPING_TIME_TYPE_PERIOD = 2;
        //最大间隔天数
        public static final int SHIPPING_TIME_MAX_INTERVAL = 15;


        public static final String KEY_SHIPPING_ADDRESS = "key_shipping_address";

        public static final String KEY_ADDRESS = "key_address";

        public static final String KEY_WORDS = "key_words";

        //发货地
        public static final int VALUE_START_ADDRESS = 0;
//        //配送地
//        public static final int VALUE_END_ADDRESS = 1;

        public static final String KEY_TRUCK_TYPE = "key_truck_type";
        /**
         * 车型-》小型面包车
         */
        public static final int VALUE_TRUCK_TYPE_0 = 0;
        /**
         * 车型-》金杯
         */
        public static final int VALUE_TRUCK_TYPE_1 = 1;
        /**
         * 车型-》依维柯
         */
        public static final int VALUE_TRUCK_TYPE_2 = 2;
        /**
         * 车型-》4.2米货箱
         */
        public static final int VALUE_TRUCK_TYPE_3 = 3;

        public static final String VALUE_CONDITION_REC = "REC";
        public static final String VALUE_CONDITION_CAR = "CAR";
        public static final String VALUE_CONDITION_PAY = "PAY";


    }

}
